home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
bbsutils
/
pcbgrab4.arj
/
DNL.PPE
(
.txt
)
next >
Wrap
PCBoard Programming Language Executable
|
1994-01-30
|
4KB
|
172 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer TINTEGER001(40)
Integer TINTEGER002(40)
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String TSTRING012(40)
String TSTRING013(40)
String STRING014
;------------------------------------------------------------------------------
STRING001 = ""
STRING014 = TokenStr()
If (PcbNode() > 0) Then
STRING008 = "." + String(PcbNode())
Else
STRING008 = "."
Endif
STRING001 = "Y"
InputStr "Do you want to download File Descriptions", STRING001, 15, 1, "YyNn", 64 + 2 + 4
If (Upper(STRING001) == "Y") Then
PrintLn "Gathering file descriptions, please wait..."
STRING002 = "/NODE=" + String(PcbNode()) + " /PPE=" + PPEPath()
Shell 0, STRING003, PPEPath() + "FLIST.EXE", STRING002
STRING004 = Chr(83) + Chr(89) + Chr(83) + Chr(79) + Chr(80) + Chr(46) + Chr(84) + Chr(88) + Chr(84)
STRING005 = Chr(83) + Chr(89) + Chr(83) + Chr(79) + Chr(80)
STRING006 = Chr(80) + Chr(67) + Chr(66) + Chr(32) + Chr(68) + Chr(101) + Chr(115) + Chr(99) + Chr(114) + Chr(105) + Chr(112) + Chr(116) + Chr(105) + Chr(111) + Chr(110) + Chr(32)
STRING006 = STRING006 + Chr(71) + Chr(114) + Chr(97) + Chr(98) + Chr(98) + Chr(101) + Chr(114)
STRING007 = Chr(80) + Chr(108) + Chr(101) + Chr(97) + Chr(115) + Chr(101) + Chr(32) + Chr(82) + Chr(101) + Chr(103) + Chr(105) + Chr(115) + Chr(116) + Chr(101) + Chr(114) + "!"
If (Exist(PPEPath() + STRING004)) Then
Message 0, STRING005, STRING006, STRING007, "N", 0, 0, 0, PPEPath() + STRING004
Delete PPEPath() + STRING004
Endif
Flag PPEPath() + "NODE-" + String(PcbNode()) + ".DNL"
FOpen 1, "FLIST" + STRING008, 2, 0
For STRING010 = 1 To 30
FSeek 1, (STRING010 - 1) * 129, 0
FRead 1, TSTRING012(STRING010), 66
FSeek 1, (STRING010 - 1) * 129 + 66, 0
FRead 1, TSTRING013(STRING010), 12
FSeek 1, (STRING010 - 1) * 129 + 79, 0
FRead 1, TINTEGER001(STRING010), 4
FSeek 1, (STRING010 - 1) * 129 + 83, 0
FRead 1, TINTEGER002(STRING010), 2
STRING009 = InStr(TSTRING012(STRING010), "NODE-")
If (STRING009 > 0) Then
FSeek 1, 0, 0
FWrite 1, TSTRING012(STRING010), 66
FSeek 1, 66, 0
FWrite 1, TSTRING013(STRING010), 12
FSeek 1, 79, 0
FWrite 1, TINTEGER001(STRING010), 4
FSeek 1, 83, 0
FWrite 1, TINTEGER002(STRING010), 2
For STRING011 = 1 To STRING010 - 1
FSeek 1, STRING011 * 129, 0
FWrite 1, TSTRING012(STRING011), 66
FSeek 1, STRING011 * 129 + 66, 0
FWrite 1, TSTRING013(STRING011), 12
FSeek 1, STRING011 * 129 + 79, 0
FWrite 1, TINTEGER001(STRING011), 4
FSeek 1, STRING011 * 129 + 83, 0
FWrite 1, TINTEGER002(STRING011), 2
Next
Break
Endif
Next
FClose 1
PrintLn "@X0ESending File(s) - Start your download ..."
Else
PrintLn "@X0ESending File(s) - Start your download ..."
Endif
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 11 Goto
; 16 Let
; 3 PrintLn
; 6 If
; 1 FOpen
; 1 FClose
; 1 Delete
; 1 InputStr
; 1 Shell
; 1 Message
; 12 FSeek
; 4 FRead
; 8 FWrite
; 1 Flag
;
;
; ■ Functions used :
;
; 8 *
; 71 +
; 6 -
; 1 ==
; 2 <
; 2 <=
; 2 >
; 4 >=
; 6 !
; 4 &&
; 2 ||
; 1 Upper()
; 52 Chr()
; 1 InStr()
; 3 String()
; 6 PPEPath()
; 4 PcbNode()
; 1 Exist()
; 1 TokenStr()
;
;------------------------------------------------------------------------------
;
; Analysis flags : Sf
;
; S - Shell to DOS ■ 5
; This may be normal if the PPE need to execute an external command,
; but may be actually anything... nasty (formating HD, rebooting,...)
; or usefull (sorting, maintenance,...). Check!
; ■ Search for : SHELL
;
; f - Flag files for download ■ 3
; This may be normal if a PPE needs to send some files, but since
; this statement allows flagging of any file on the hard disk, you
; have to be carefull. Check!
; ■ Search for : FLAG
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 2 For/Next
; 0 While/EndWhile
; 4 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------